-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
overlay: store if there are no ACLs in the layer #1663
Conversation
e43be14
to
39f162f
Compare
None of this seems needed. We already store the LCFS_EROFS_FLAGS_HAS_ACL in the struct lcfs_erofs_header_s at offset 0 in the image. |
Right, I raised the same point in this thread #1663 (comment) but basically we're not using |
39f162f
to
9164ae0
Compare
9164ae0
to
a308b84
Compare
fixed the patch to read the flag from the composefs file itself, it is much simpler now |
858cd50
to
1657126
Compare
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
1657126
to
c7ce29b
Compare
if there are no ACLs, then we mount the EROFS layer with the "noacl" mount option. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
c7ce29b
to
0d28d3e
Compare
@rhatdan fine to merge this as well? |
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(A very late look I’m afraid)
erofsBlob := d.getErofsBlob(lowerID) | ||
_, err = os.Stat(erofsBlob) | ||
maybeAddComposefsMount := func(lowerID string, i int) (string, error) { | ||
composefsBlob := d.getComposefsData(lowerID) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/composefsBlob/composefsDataDir/g
?
if err != nil { | ||
if os.IsNotExist(err) { | ||
return "", nil | ||
} | ||
return "", err | ||
} | ||
logrus.Debugf("overlay: using erofs blob %s for lower %s", erofsBlob, lowerID) | ||
logrus.Debugf("overlay: using composefs blob %s for lower %s", composefsBlob, lowerID) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
… and something like s/blob/subdirectory/
here.
if there are no ACLs, then we mount the EROFS layer with the "noacl" mount option.
Signed-off-by: Giuseppe Scrivano gscrivan@redhat.com